﻿#region 命名空间

using System;

#endregion

namespace WinnerCMS.PlugIn.OpenAPI.Config
{
    /// <summary>
    /// 节点
    /// </summary>
    [Serializable]
    public class Node
    {
        public Node()
        {
            AppId = string.Empty;
        }

        /// <summary>
        /// 节点Id
        /// </summary>
        public string AppId { get; set; }


        private string _url = string.Empty;

        /// <summary>
        /// 节点api地址
        /// </summary>
        public string Url
        {
            get { return this._url; }
            set
            {
                if (value.ToLower().StartsWith("http") == false)
                {
                    this._url = string.Concat("http://", value);
                }
                else
                {
                    this._url = value;
                }
            }
        }
    }
}